Link previews turn a pasted URL into a rich, metadata-aware widget that can be displayed in three visual modes:
A link preview can be displayed in one of three modes:
iframe).|
|
|
|
There are two ways to create one:
A link preview is automatically created:
To undo an automatic link preview, press Ctrl+Z immediately afterwards which keeps it as a plain link instead. Alternatively, once a link preview was created, click on the link and select Plain link from the link preview toolbar.
This automatic conversion can be disabled by going to Options → Text Notes and unchecking Autogenerate link previews from the Features section.
If the link is not accessible to the Trilium server (or the network request fails for any other reason), it will not be converted to a link preview.
Click Link preview in the formatting toolbar to open the Link preview popup. Paste the URL and choose the type of preview.
Click on an inserted link preview to select it, and a small toolbar will appear with the following options:
When you insert a link preview, Trilium fetches metadata once and stores it inside the note's HTML:
og:title, og:description,
og:image, og:site_name), falling
back to the page's <title> and
<meta name="description">. The site's favicon is downloaded
and inlined.Because the data is stored in the note itself, link previews continue to render correctly when you reopen the note, share/publish it, or export to HTML — without any further network requests.
The metadata is captured at insertion time and is not automatically refreshed. If the linked page later changes its title or thumbnail, you'll need to re-insert the link to pick up the new values. To refresh a link, simply create it again.
When accessing a Server Installation, the data is fetched from the remote URL by the server and not the client.